<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.0/css/jquery.dataTables.css"></link>

<script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" language="javascript" src="//cdn.datatables.net/1.10.0/js/jquery.dataTables.js"></script>

<script type="text/javascript" language="javascript" >

$(function(){
	var check = $('#add').attr('value');
	if (check == 1){
		$('#barcode').val("");
		$('#type').val("");
		$('#desc').val("");
		$('#model_no').val("");
		$('#sn_no').val("");
	}

});

</script>
</head>
<body>
<div style="font-family:Arial, Helvetica, sans-serif;" >
<h1>Add Equipment Info</h1>

<form id="form1" name="form1" method="post" action="" enctype="multipart/form-data">
<table border="1" cellspacing="0" cellpadding="5">
	<tr>
		<th colspan="2" scope="col">Add Info<input type = "hidden" id = "add" value = "<?php echo $this->added;?>"></input></th>
	</tr>
	<tr>
		<td>Barcode</td>
		<td><input name = "barcode" id = "barcode" type="text" value = "<?php echo $this->barcode?>"></input></td>
	</tr>
	<tr>
		<td>Type</td>
		<td><input name = "type" id = "type" type="text" value = "<?php echo $this->type?>"></input></td>
	</tr>
	<tr>
		<td>Description</td>
		<td><input name = "desc" id = "desc" type="text" value = "<?php echo $this->desc?>"></input></td>
	</tr>
	<tr>
		<td>Model No</td>
		<td><input name = "model_no" id = "model_no" type="text" <?php if($this->model){?>value = "<?php echo $this->model?>"<?php }?>></input></td>
	</tr>
	<tr>
		<td>S/N No</td>
		<td><input name = "sn_no" id = "sn_no" type="text" <?php if($this->sn){?>value = "<?php echo $this->sn?>"<?php }?>></input></td>
	</tr>
	<tr>
		<td colspan="2" scope="col"><input name="submit" id = "submit" type = "submit" value = "Add Record" ></input></td>
	</tr>
	

</table>
	
<br />
<br />
</form>
</div>
</body>
</html>
